<template>
	<view class="container">
		<!-- 步骤指示器 -->
		<view class="step-indicator">
			<view class="step" :class="{active: currentStep >= 1, completed: currentStep > 1}">
				<view class="step-number">1</view>
				<text class="step-text">宠物信息</text>
			</view>
			<view class="step-line" :class="{active: currentStep > 1}"></view>
			<view class="step" :class="{active: currentStep >= 2, completed: currentStep > 2}">
				<view class="step-number">2</view>
				<text class="step-text">服务需求</text>
			</view>
			<view class="step-line" :class="{active: currentStep > 2}"></view>
			<view class="step" :class="{active: currentStep >= 3}">
				<view class="step-number">3</view>
				<text class="step-text">地址报酬</text>
			</view>
		</view>

		<!-- 步骤1：宠物信息 -->
		<view class="step-content" v-if="currentStep === 1">
			<view class="form-section">
				<text class="section-title">宠物基本信息</text>
				
				<view class="form-item">
					<text class="label">宠物类型 *</text>
					<view class="pet-types">
						<view class="pet-type" 
							  :class="{selected: formData.petType === type.value}" 
							  v-for="type in petTypes" 
							  :key="type.value"
							  @click="selectPetType(type.value)">
							<text class="pet-icon">{{type.icon}}</text>
							<text class="pet-name">{{type.name}}</text>
						</view>
					</view>
				</view>

				<view class="form-item">
					<text class="label">宠物姓名 *</text>
					<input class="input" v-model="formData.petName" placeholder="请输入宠物姓名" />
				</view>

				<view class="form-item">
					<text class="label">宠物年龄</text>
					<picker mode="selector" :range="ageOptions" @change="onAgeChange">
						<view class="picker-input">
							<text class="picker-text">{{formData.petAge || '请选择年龄'}}</text>
							<text class="picker-arrow">></text>
						</view>
					</picker>
				</view>

				<view class="form-item">
					<text class="label">特殊需求</text>
					<view class="special-needs">
						<view class="need-tag" 
							  :class="{selected: formData.specialNeeds.includes(need)}" 
							  v-for="need in specialNeedOptions" 
							  :key="need"
							  @click="toggleSpecialNeed(need)">
							{{need}}
						</view>
					</view>
				</view>

				<view class="form-item">
					<text class="label">宠物照片</text>
					<view class="photo-upload">
						<view class="photo-item" v-for="(photo, index) in formData.petPhotos" :key="index">
							<image class="photo" :src="photo" @click="previewPhoto(photo)"></image>
							<view class="photo-delete" @click="deletePhoto(index)">×</view>
						</view>
						<view class="photo-add" @click="addPhoto" v-if="formData.petPhotos.length < 3">
							<text class="add-icon">+</text>
							<text class="add-text">添加照片</text>
						</view>
					</view>
				</view>
			</view>
		</view>

		<!-- 步骤2：服务需求 -->
		<view class="step-content" v-if="currentStep === 2">
			<view class="form-section">
				<text class="section-title">服务详情</text>
				
				<view class="form-item">
					<text class="label">服务日期 *</text>
					<picker mode="date" @change="onDateChange">
						<view class="picker-input">
							<text class="picker-text">{{formData.serviceDate || '请选择日期'}}</text>
							<text class="picker-arrow">></text>
						</view>
					</picker>
				</view>

				<view class="form-item">
					<text class="label">服务时间 *</text>
					<picker mode="time" @change="onTimeChange">
						<view class="picker-input">
							<text class="picker-text">{{formData.serviceTime || '请选择时间'}}</text>
							<text class="picker-arrow">></text>
						</view>
					</picker>
				</view>

				<view class="form-item">
					<text class="label">服务内容 *</text>
					<view class="service-types">
						<view class="service-type" 
							  :class="{selected: formData.serviceTypes.includes(service.value)}" 
							  v-for="service in serviceOptions" 
							  :key="service.value"
							  @click="toggleServiceType(service.value)">
							<text class="service-icon">{{service.icon}}</text>
							<text class="service-name">{{service.name}}</text>
						</view>
					</view>
				</view>

				<view class="form-item">
					<text class="label">服务频率</text>
					<picker mode="selector" :range="frequencyOptions" @change="onFrequencyChange">
						<view class="picker-input">
							<text class="picker-text">{{formData.serviceFrequency || '请选择频率'}}</text>
							<text class="picker-arrow">></text>
						</view>
					</picker>
				</view>

				<view class="form-item">
					<text class="label">备注说明</text>
					<textarea class="textarea" v-model="formData.serviceNote" placeholder="请描述宠物的习性、注意事项等"></textarea>
				</view>
			</view>
		</view>

		<!-- 步骤3：地址报酬 -->
		<view class="step-content" v-if="currentStep === 3">
			<view class="form-section">
				<text class="section-title">地址与报酬</text>
				
				<view class="form-item">
					<text class="label">服务地址 *</text>
					<view class="address-input" @click="selectAddress">
						<text class="address-text">{{formData.address || '点击选择地址'}}</text>
						<text class="picker-arrow">></text>
					</view>
				</view>

				<view class="form-item">
					<text class="label">详细地址</text>
					<input class="input" v-model="formData.detailAddress" placeholder="请输入门牌号、楼层等详细信息" />
				</view>

				<view class="form-item">
					<text class="label">联系电话 *</text>
					<input class="input" v-model="formData.phone" placeholder="请输入联系电话" type="number" />
				</view>

				<view class="form-item">
					<text class="label">服务报酬 *</text>
					<view class="price-section">
						<view class="price-input-wrapper">
							<text class="price-symbol">¥</text>
							<input class="price-input" v-model="formData.price" placeholder="0" type="number" />
						</view>
						<view class="price-suggestions">
							<text class="price-tip">建议报酬：</text>
							<view class="price-tag" 
								  v-for="price in suggestedPrices" 
								  :key="price"
								  @click="selectPrice(price)">
								¥{{price}}
							</view>
						</view>
					</view>
				</view>

				<view class="form-item">
					<text class="label">计费方式</text>
					<view class="billing-types">
						<view class="billing-type" 
							  :class="{selected: formData.billingType === type.value}" 
							  v-for="type in billingOptions" 
							  :key="type.value"
							  @click="selectBillingType(type.value)">
							{{type.name}}
						</view>
					</view>
				</view>
			</view>
		</view>

		<!-- 底部按钮 -->
		<view class="bottom-actions">
			<button class="btn btn-secondary" v-if="currentStep > 1" @click="prevStep">上一步</button>
			<button class="btn btn-primary" v-if="currentStep < 3" @click="nextStep">下一步</button>
			<button class="btn btn-primary" v-if="currentStep === 3" @click="submitForm">发布需求</button>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			currentStep: 1,
			formData: {
				// 步骤1：宠物信息
				petType: '',
				petName: '',
				petAge: '',
				specialNeeds: [],
				petPhotos: [],
				// 步骤2：服务需求
				serviceDate: '',
				serviceTime: '',
				serviceTypes: [],
				serviceFrequency: '',
				serviceNote: '',
				// 步骤3：地址报酬
				address: '',
				detailAddress: '',
				phone: '',
				price: '',
				billingType: '按次'
			},
			petTypes: [
				{value: 'cat', name: '猫咪', icon: '🐱'},
				{value: 'dog', name: '狗狗', icon: '🐕'},
				{value: 'bird', name: '鸟类', icon: '🐦'},
				{value: 'other', name: '其他', icon: '🐾'}
			],
			ageOptions: ['幼年(0-1岁)', '青年(1-3岁)', '成年(3-7岁)', '老年(7岁以上)'],
			specialNeedOptions: ['需要喂药', '特殊饮食', '怕生人', '需要陪伴', '其他'],
			serviceOptions: [
				{value: 'feed', name: '喂食', icon: '🍽️'},
				{value: 'walk', name: '遛狗', icon: '🚶'},
				{value: 'clean', name: '清理', icon: '🧹'},
				{value: 'play', name: '陪玩', icon: '🎾'},
				{value: 'wash', name: '洗澡', icon: '🛁'},
				{value: 'medical', name: '喂药', icon: '💊'}
			],
			frequencyOptions: ['一次性', '每天', '每周', '每月'],
			suggestedPrices: [30, 50, 80, 100],
			billingOptions: [
				{value: '按次', name: '按次'},
				{value: '按天', name: '按天'},
				{value: '按周', name: '按周'}
			]
		}
	},
	methods: {
		// 宠物类型选择
		selectPetType(type) {
			this.formData.petType = type
		},
		// 年龄选择
		onAgeChange(e) {
			this.formData.petAge = this.ageOptions[e.detail.value]
		},
		// 特殊需求切换
		toggleSpecialNeed(need) {
			const index = this.formData.specialNeeds.indexOf(need)
			if (index > -1) {
				this.formData.specialNeeds.splice(index, 1)
			} else {
				this.formData.specialNeeds.push(need)
			}
		},
		// 添加照片
		addPhoto() {
			uni.chooseImage({
				count: 3 - this.formData.petPhotos.length,
				success: (res) => {
					this.formData.petPhotos.push(...res.tempFilePaths)
				}
			})
		},
		// 删除照片
		deletePhoto(index) {
			this.formData.petPhotos.splice(index, 1)
		},
		// 预览照片
		previewPhoto(photo) {
			uni.previewImage({
				current: photo,
				urls: this.formData.petPhotos
			})
		},
		// 日期选择
		onDateChange(e) {
			this.formData.serviceDate = e.detail.value
		},
		// 时间选择
		onTimeChange(e) {
			this.formData.serviceTime = e.detail.value
		},
		// 服务类型切换
		toggleServiceType(type) {
			const index = this.formData.serviceTypes.indexOf(type)
			if (index > -1) {
				this.formData.serviceTypes.splice(index, 1)
			} else {
				this.formData.serviceTypes.push(type)
			}
		},
		// 频率选择
		onFrequencyChange(e) {
			this.formData.serviceFrequency = this.frequencyOptions[e.detail.value]
		},
		// 选择地址
		selectAddress() {
			uni.chooseLocation({
				success: (res) => {
					this.formData.address = res.address
				}
			})
		},
		// 选择建议价格
		selectPrice(price) {
			this.formData.price = price.toString()
		},
		// 选择计费方式
		selectBillingType(type) {
			this.formData.billingType = type
		},
		// 下一步
		nextStep() {
			if (this.validateCurrentStep()) {
				this.currentStep++
			}
		},
		// 上一步
		prevStep() {
			this.currentStep--
		},
		// 验证当前步骤
		validateCurrentStep() {
			if (this.currentStep === 1) {
				if (!this.formData.petType || !this.formData.petName) {
					uni.showToast({title: '请填写必填项', icon: 'none'})
					return false
				}
			} else if (this.currentStep === 2) {
				if (!this.formData.serviceDate || !this.formData.serviceTime || this.formData.serviceTypes.length === 0) {
					uni.showToast({title: '请填写必填项', icon: 'none'})
					return false
				}
			}
			return true
		},
		// 提交表单
		submitForm() {
			if (!this.formData.address || !this.formData.phone || !this.formData.price) {
				uni.showToast({title: '请填写必填项', icon: 'none'})
				return
			}
			
			uni.showLoading({title: '发布中...'})
			
			// 模拟提交
			setTimeout(() => {
				uni.hideLoading()
				uni.showToast({title: '发布成功', icon: 'success'})
				setTimeout(() => {
					uni.navigateBack()
				}, 1500)
			}, 2000)
		}
	}
}
</script>

<style scoped>
@import url('/static/css/global.css');

.container {
	background: linear-gradient(135deg, var(--bg-secondary) 0%, #F0F8FF 100%);
	min-height: 100vh;
	padding-bottom: 120rpx;
}

/* 步骤指示器 */
.step-indicator {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--spacing-xl) var(--spacing-lg);
	background: linear-gradient(135deg, var(--bg-primary) 0%, #FFF8DC 100%);
	margin-bottom: var(--spacing-md);
	border-bottom: 1rpx solid var(--border-light);
	border-radius: var(--radius-large);
	box-shadow: var(--shadow-medium);
	margin: var(--spacing-lg);
}

.step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	transition: all 0.3s ease;
}

.step-number {
	width: 65rpx;
	height: 65rpx;
	border-radius: 50%;
	background: var(--bg-secondary);
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--font-lg);
	font-weight: 600;
	margin-bottom: var(--spacing-sm);
	transition: all 0.3s ease;
	border: 3rpx solid var(--border-medium);
	box-shadow: var(--shadow-light);
}

.step.active .step-number {
	background: var(--primary-gradient);
	color: white;
	border-color: var(--primary-color);
	transform: scale(1.1);
	box-shadow: var(--shadow-medium);
}

.step.completed .step-number {
	background: var(--success-color);
	color: white;
	border-color: var(--success-color);
	box-shadow: var(--shadow-medium);
}

.step.completed .step-number::after {
	content: '✓';
	position: absolute;
	font-size: var(--font-sm);
	color: white;
}

.step-text {
	font-size: var(--font-sm);
	color: var(--text-secondary);
	font-weight: 500;
	transition: all 0.3s ease;
}

.step.active .step-text {
	color: var(--text-primary);
	font-weight: 600;
}

.step.completed .step-text {
	color: var(--text-primary);
	font-weight: 600;
}

.step-line {
	width: 80rpx;
	height: 3rpx;
	background: var(--border-medium);
	margin: 0 var(--spacing-lg);
	border-radius: 2rpx;
}

.step-line.active {
	background: var(--primary-gradient);
}

/* 表单内容 */
.step-content {
	padding: var(--spacing-xl) var(--spacing-lg);
	margin: 0 var(--spacing-lg);
}

.form-section {
	background: linear-gradient(145deg, var(--bg-primary) 0%, var(--mint-green-98) 100%);
	border-radius: var(--radius-xl);
	padding: var(--spacing-2xl) var(--spacing-xl);
	box-shadow: var(--shadow-heavy);
	border: 1rpx solid var(--mint-green-90);
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
}

.form-section:hover {
	transform: translateY(-5rpx);
	box-shadow: 0 12rpx 40rpx rgba(0, 0, 0, 0.15);
}

/* .form-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6rpx;
	background: var(--primary-gradient);
	border-radius: var(--radius-large) var(--radius-large) 0 0;
} */

.section-title {
	font-size: var(--font-3xl);
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: var(--spacing-2xl);
	display: block;
	position: relative;
	padding-left: var(--spacing-lg);
	text-align: center;
	margin-left: calc(-1 * var(--spacing-lg));
}

.section-title::before {
	content: '';
	position: absolute;
	left: 50%;
	top: -10rpx;
	transform: translateX(-50%);
	width: 60rpx;
	height: 6rpx;
	background: var(--primary-gradient);
	border-radius: 3rpx;
}

.form-item {
	margin-bottom: var(--spacing-xl);
}

.form-item:last-child {
	margin-bottom: 0;
}

.label {
	font-size: var(--font-xl);
	color: var(--text-primary);
	margin-bottom: var(--spacing-md);
	display: block;
	font-weight: 600;
}

.input {
	width: 100%;
	height: 90rpx;
	border: 2rpx solid var(--border-medium);
	border-radius: var(--radius-large);
	padding: 0 var(--spacing-lg);
	font-size: var(--font-xl);
	box-sizing: border-box;
	background: var(--bg-primary);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-light);
	position: relative;
	font-weight: 500;
}

.input:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 6rpx rgba(255, 182, 193, 0.15), var(--shadow-medium);
	transform: translateY(-2rpx);
	outline: none;
}

.input:hover {
	border-color: var(--primary-light);
	box-shadow: var(--shadow-medium);
}

.textarea {
	width: 100%;
	height: 150rpx;
	border: 2rpx solid var(--border-medium);
	border-radius: var(--radius-large);
	padding: var(--spacing-lg);
	font-size: var(--font-xl);
	box-sizing: border-box;
	resize: none;
	background: var(--bg-primary);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-light);
	line-height: 1.5;
	font-weight: 500;
}

.textarea:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 6rpx rgba(255, 182, 193, 0.15), var(--shadow-medium);
	transform: translateY(-2rpx);
	outline: none;
}

.textarea:hover {
	border-color: var(--primary-light);
	box-shadow: var(--shadow-medium);
}

.picker-input {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 90rpx;
	border: 2rpx solid var(--border-medium);
	border-radius: var(--radius-large);
	padding: 0 var(--spacing-lg);
	background: var(--bg-primary);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-light);
	cursor: pointer;
}

.picker-input:hover {
	border-color: var(--primary-light);
	box-shadow: var(--shadow-medium);
	transform: translateY(-2rpx);
}

.picker-input:active {
	transform: translateY(0);
	box-shadow: var(--shadow-light);
}

.picker-text {
	font-size: var(--font-xl);
	color: var(--text-primary);
	font-weight: 500;
}

.picker-arrow {
	font-size: var(--font-xs);
	color: var(--text-tertiary);
}

/* 宠物类型选择 */
.pet-types {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-lg);
	padding: var(--spacing-md) 0;
	justify-content: center;
}

.pet-type {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 150rpx;
	height: 150rpx;
	border: 2rpx solid var(--border-medium);
	border-radius: var(--radius-xl);
	justify-content: center;
	background: linear-gradient(145deg, var(--bg-primary) 0%, var(--mint-green-98) 100%);
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-light);
	position: relative;
	overflow: hidden;
}

.pet-type::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--primary-gradient);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 0;
}

.pet-type:hover {
	transform: translateY(-6rpx);
	box-shadow: var(--shadow-heavy);
	border-color: var(--primary-light);
}

.pet-type.selected {
	border-color: var(--primary-color);
	background: linear-gradient(145deg, var(--light-mint) 0%, var(--mint-green-95) 100%);
	box-shadow: 0 0 0 4rpx rgba(255, 182, 193, 0.25), var(--shadow-medium);
	transform: translateY(-3rpx);
}

.pet-type.selected::before {
	opacity: 0.05;
}

.pet-icon {
	font-size: 52rpx;
	margin-bottom: var(--spacing-sm);
	position: relative;
	z-index: 1;
	transition: transform 0.3s ease;
	filter: drop-shadow(0 2rpx 4rpx rgba(0, 0, 0, 0.1));
}

.pet-type:hover .pet-icon {
	transform: scale(1.15);
}

.pet-name {
	font-size: var(--font-lg);
	color: var(--text-primary);
	font-weight: 600;
	position: relative;
	z-index: 1;
	transition: color 0.3s ease;
}

.pet-type.selected .pet-name {
	color: var(--primary-color);
	font-weight: 700;
	text-shadow: 0 1rpx 2rpx rgba(0, 0, 0, 0.1);
}

/* 特殊需求标签 */
.special-needs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-md);
	padding: var(--spacing-md) 0;
	justify-content: center;
}

.need-tag {
	padding: var(--spacing-md) var(--spacing-xl);
	border: 2rpx solid var(--border-medium);
	border-radius: 30rpx;
	font-size: var(--font-md);
	color: var(--text-secondary);
	background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--mint-green-98) 100%);
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-light);
	position: relative;
	overflow: hidden;
	font-weight: 500;
	min-width: 100rpx;
	text-align: center;
}

.need-tag::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--primary-gradient);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 0;
}

.need-tag:hover {
	transform: translateY(-3rpx);
	box-shadow: var(--shadow-medium);
	border-color: var(--primary-light);
}

.need-tag.selected {
	border-color: var(--primary-color);
	background: linear-gradient(145deg, var(--light-mint) 0%, var(--mint-green-95) 100%);
	color: var(--primary-color);
	box-shadow: 0 0 0 3rpx rgba(255, 182, 193, 0.2), var(--shadow-medium);
	transform: translateY(-2rpx);
	font-weight: 600;
	text-shadow: 0 1rpx 2rpx rgba(0, 0, 0, 0.1);
}

.need-tag.selected::before {
	opacity: 0.03;
}

/* 照片上传 */
.photo-upload {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-lg);
	padding: var(--spacing-md) 0;
	justify-content: center;
}

.photo-item {
	position: relative;
	width: 200rpx;
	height: 200rpx;
	border-radius: var(--radius-xl);
	overflow: hidden;
	box-shadow: var(--shadow-medium);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 3rpx solid white;
}

.photo-item:hover {
	transform: translateY(-6rpx) scale(1.03);
	box-shadow: var(--shadow-heavy);
}

.photo {
	width: 100%;
	height: 100%;
	border-radius: var(--radius-xl);
	object-fit: cover;
	transition: transform 0.3s ease;
}

.photo-item:hover .photo {
	transform: scale(1.08);
}

.photo-delete {
	position: absolute;
	top: var(--spacing-sm);
	right: var(--spacing-sm);
	width: 50rpx;
	height: 50rpx;
	background: rgba(255, 59, 48, 0.95);
	color: white;
	border-radius: var(--radius-round);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--font-xl);
	backdrop-filter: blur(10rpx);
	transition: all 0.3s ease;
	z-index: 10;
	border: 2rpx solid rgba(255, 255, 255, 0.5);
	box-shadow: var(--shadow-medium);
}

.photo-delete:hover {
	background: rgba(255, 59, 48, 1);
	transform: scale(1.15);
	box-shadow: var(--shadow-heavy);
}

.photo-add {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 200rpx;
	height: 200rpx;
	border: 3rpx dashed var(--primary-color);
	border-radius: var(--radius-xl);
	background: linear-gradient(145deg, var(--bg-primary) 0%, var(--mint-green-98) 100%);
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-light);
	position: relative;
	overflow: hidden;
}

.photo-add::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--primary-gradient);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 0;
}

.photo-add:hover {
	transform: translateY(-6rpx) scale(1.03);
	box-shadow: var(--shadow-heavy);
	border-color: var(--primary-color);
	border-style: solid;
}

.photo-add:hover::before {
	opacity: 0.05;
}

.add-icon {
	font-size: 65rpx;
	color: var(--primary-color);
	margin-bottom: var(--spacing-sm);
	position: relative;
	z-index: 1;
	transition: all 0.3s ease;
	font-weight: 300;
	filter: drop-shadow(0 2rpx 4rpx rgba(0, 0, 0, 0.1));
}

.photo-add:hover .add-icon {
	transform: scale(1.2) rotate(90deg);
	color: var(--primary-color);
}

.add-text {
	font-size: var(--font-lg);
	color: var(--primary-color);
	position: relative;
	z-index: 1;
	font-weight: 600;
	transition: all 0.3s ease;
	text-shadow: 0 1rpx 2rpx rgba(0, 0, 0, 0.1);
}

.photo-add:hover .add-text {
	color: var(--primary-color);
	transform: translateY(-3rpx);
}

/* 服务类型选择 */
.service-types {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-md);
	justify-content: center;
}

.service-type {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 130rpx;
	height: 130rpx;
	border: 2rpx solid var(--border-medium);
	border-radius: var(--radius-large);
	justify-content: center;
	background: var(--bg-secondary);
	transition: all 0.3s ease;
	box-shadow: var(--shadow-light);
}

.service-type.selected {
	border-color: var(--primary-color);
	background: var(--light-mint);
	transform: translateY(-3rpx);
	box-shadow: var(--shadow-medium);
}

.service-icon {
	font-size: 45rpx;
	margin-bottom: var(--spacing-xs);
	filter: drop-shadow(0 2rpx 4rpx rgba(0, 0, 0, 0.1));
}

.service-name {
	font-size: var(--font-md);
	color: var(--text-secondary);
	font-weight: 500;
}

/* 地址输入 */
.address-input {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 85rpx;
	border: 2rpx solid var(--border-medium);
	border-radius: var(--radius-medium);
	padding: 0 var(--spacing-md);
	background: var(--bg-secondary);
	transition: all 0.3s ease;
	box-shadow: var(--shadow-light);
}

.address-text {
	font-size: var(--font-xl);
	color: var(--text-primary);
	font-weight: 500;
}

/* 价格输入 */
.price-section {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
	align-items: center;
}

.price-input-wrapper {
	display: flex;
	align-items: center;
	height: 85rpx;
	border: 2rpx solid var(--border-medium);
	border-radius: var(--radius-medium);
	padding: 0 var(--spacing-md);
	background: var(--bg-primary);
	transition: all 0.3s ease;
	box-shadow: var(--shadow-light);
}

.price-symbol {
	font-size: var(--font-3xl);
	color: var(--primary-color);
	font-weight: bold;
	margin-right: var(--spacing-xs);
	text-shadow: 0 1rpx 2rpx rgba(0, 0, 0, 0.1);
}

.price-input {
	flex: 1;
	font-size: var(--font-2xl);
	color: var(--text-primary);
	border: none;
	outline: none;
	font-weight: 600;
	text-align: center;
}

.price-suggestions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--spacing-sm);
	justify-content: center;
}

.price-tip {
	font-size: var(--font-xs);
	color: var(--text-secondary);
	margin-right: var(--spacing-xs);
}

.price-tag {
	padding: var(--spacing-xs) var(--spacing-lg);
	border: 2rpx solid var(--primary-color);
	border-radius: var(--spacing-md);
	font-size: var(--font-sm);
	color: var(--primary-color);
	background: var(--light-mint);
	transition: all 0.3s ease;
	font-weight: 500;
}

/* 计费方式 */
.billing-types {
	display: flex;
	gap: var(--spacing-md);
	justify-content: center;
}

.billing-type {
	flex: 1;
	height: 85rpx;
	border: 2rpx solid var(--border-medium);
	border-radius: var(--radius-medium);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--font-xl);
	color: var(--text-secondary);
	background: var(--bg-secondary);
	transition: all 0.3s ease;
	box-shadow: var(--shadow-light);
	font-weight: 500;
	max-width: 150rpx;
}

.billing-type.selected {
	border-color: var(--primary-color);
	background: var(--light-mint);
	color: var(--primary-color);
	transform: translateY(-2rpx);
	box-shadow: var(--shadow-medium);
	font-weight: 600;
}

/* 底部按钮 */
.bottom-actions {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	padding: var(--spacing-lg);
	background: linear-gradient(135deg, var(--bg-primary) 0%, #FFF8DC 100%);
	border-top: 2rpx solid var(--border-medium);
	display: flex;
	gap: var(--spacing-md);
	box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.1);
}

.btn {
	flex: 1;
	height: 90rpx;
	border-radius: var(--radius-large);
	font-size: var(--font-xl);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-medium);
}

.btn-primary {
	background: var(--primary-gradient);
	color: white;
	box-shadow: var(--shadow-heavy);
	text-shadow: 0 1rpx 2rpx rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
	transform: translateY(-4rpx);
	box-shadow: 0 12rpx 40rpx rgba(255, 182, 193, 0.3);
}

.btn-primary:active {
	transform: translateY(-1rpx);
	box-shadow: var(--shadow-medium);
}

.btn-secondary {
	background: var(--bg-primary);
	color: var(--primary-color);
	border: 2rpx solid var(--primary-color);
	box-shadow: var(--shadow-medium);
}

.btn-secondary:hover {
	background: var(--primary-gradient);
	color: white;
	transform: translateY(-4rpx);
	box-shadow: var(--shadow-heavy);
}

.btn-secondary:active {
	transform: translateY(-1rpx);
	box-shadow: var(--shadow-medium);
}
</style>